package com.hyz.service.permission;

import com.hyz.model.dto.ApprovalResultRequest;
import com.hyz.model.vo.AssetSecondmentResponse;
import pojo.ResponseResult;

import java.util.List;

/**
 * @author HGD
 * @date 2022/10/9 15:24
 */

public interface ApproveService {
    /**
     * 部门审批人员获取所有本部门的资产借调申请
     *
     * @return 所有本部门的资产借调申请
     */
    ResponseResult<List<AssetSecondmentResponse>> apGetAssetSecondments();

    /**
     * 部门审批人员审批本部门的申请
     *
     * @param request 传入调用申请id和判断
     * @return 获取本部门剩余的借用申请
     */
    ResponseResult<List<AssetSecondmentResponse>> apUpdateAssetSecondment(ApprovalResultRequest request);
}
